<?php #//AJAX PHP PENNY AUCTION v.1.1

#///////////////////////////////////////////////////////////
#//  COPYRIGHT 2009 Aaron Helmlinger ALL RIGHTS RESERVED  //
#///////////////////////////////////////////////////////////   
?>

<HTML>

<HEAD>
     <link rel='stylesheet' type='text/css' href='admin/style.css' />
<link href="admin/css/main.css" rel="stylesheet" type="text/css">

                  <script type="text/javascript" src="js/global_utilities.js" language="Javascript"></script>
                  


<script language=Javascript>
function window_open(pagina,titulo,ancho,largo,x,y){
    var Ventana= 'toolbar=0,location=0,directories=0,scrollbars=0,screenX='+x+',screenY='+y+',status=0,menubar=0,resizable=0,width='+ancho+',height='+largo;
    open(pagina,titulo,Ventana);

}
</script>

            
</HEAD>
<BODY>

<BR>
<table width="95%" border=0 cellpadding=4 cellspacing=1 align=center>
<TR>
<TD>
<FIELDSET><LEGEND>

<span class=PAGE_HEADER >&nbsp;<? print $MSG_AJAX_ADMIN_SELL_TITLE; ?>&nbsp;</span>
</LEGEND>

<DIV class=EDITDATA3>


        <?
        /*if(    $feesfree=='y') {
            print "<P class=errfont>".$SETTINGS['freecatstext']."</P>";
        }   */
        ?>
    </div>
    <?if(!empty($TPL_error)) {?>
    <div class=errfont>
        <?=$TPL_error?>
    </div>
    <?}?>
    <div class="table2">
        <form name=preview action="sell.php" method="post">
            <table width=100% border="0" cellpadding="4" align=CENTER cellspacing=0>
                <tr>
                    <td colspan="2" align="center"><? print $MSG_046; ?> <BR><BR> </td>
                </tr>
                <tr>
                    <td width="40%" align="right"  valign="top"><b> <? print $MSG_017; ?> </b> </td>
                    <td width="60%" ><? print stripslashes($TPL_title_value); ?> <BR><BR> </td>
                </tr>
                <tr>
                    <td  valign="top" align="right"><b> <? print $MSG_018; ?> </b> </td>
                    <td ><? print stripslashes($TPL_description_shown_value); ?> <BR><BR> </td>
                </tr>

                <?
                if ($TPL_auction_variant!="") {
                ?>
                <tr>
                    <td  valign="middle" align="right"><b> <?print $MSG_25_0071;?> </b> </td>
                    <td ><? print $TPL_auction_variant; ?><BR><BR>  </td>
                </tr>
                <?
                }
                ?>
                <tr>
                    <td  valign="top" align="right"> <b> <? print $MSG_019; ?> </b> </td>
                    <td ><? print $TPL_pict_URL_value; ?><BR><BR>  </td>
                </tr>
                <!-- @@@@@@@@@@@@@@@@@@22 PICTURE GALLERY @@@@@@@@@@@@@@@-->
                <?
                if($SETTINGS['picturesgallery'] == 1 && @count($UPLOADED_PICTURES)> 0) {
                ?>
                <tr>
                    <td width="260" valign="middle" align="right">&nbsp;</td>
                    <td >
                        <?
                        print $MSG_663."<br />";
						$_SESSION['UPLOADED_PICTURES'] = $UPLOADED_PICTURES;
                        while(list($k,$v) = each($UPLOADED_PICTURES)) {
                            $TMP = GetImageSize($uploaded_path.session_id()."/".$v);
                            $WIDTH = $TMP[0];
                            $HEIGHT = $TMP[1];
                          ?>
                        <a href="javascript:window_open('preview_gallery.php?img=<?=$k?>','perview',<?=$WIDTH?>,<?=$HEIGHT?>,0,0)"><img src="<?=$uploaded_path.session_id().'/'.$v?>" width=40 hspace=5 border=0 /></a>
                        <?
                        }
                          ?>
                        <? print $TPL_gallery_fee; ?> <BR><BR> </td>
                </tr>
                <?
                }
                ?>
                <!-- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ -->
                <tr>
                    <td valign="top" align="right"><b> <? print $MSG_020; ?> </b> </td>
                    <td ><? print $TPL_minimum_bid_value; ?> <? print $TPL_setup_fee; ?> <BR><BR> </td>
                </tr>
                <tr>
                    <td valign="top" align="right"><b> <? print $MSG_021; ?> </b> </td>
                    <td ><? print $TPL_reserve_price_displayed; ?> <? print $TPL_reserve_fee; ?> <BR><BR> </td>
                </tr>
                                 
   
                <tr>
                    <td   valign="top" align="right"><b><? print $SELL_PAGE_START_DATE_TIME; ?></b></td>
                    <td ><? print $TPL_start_date ?><BR><BR> </td>
                </tr>
                    <tr>
                    <td   valign="top" align="right"><b><? print $SELL_PAGE_END_DATE_TIME; ?></b></td>
                    <td ><? print $TPL_end_date ?><BR><BR> </td>
                </tr>
               
                                  <tr>
                    <td  align="right" valign="top"><b>On / Off Timer</b></td>
                    <td ><? if ( $notimer == 0 ) { echo $MSG_AJAX_ADMIN_SELL_ON; }  if ( $notimer == 1 ) { echo $MSG_AJAX_ADMIN_SELL_OFF; } ?> <BR><BR></td>
                </tr> 
                
                
                <tr>
                    <td   valign="top" align="right"><b> <?print $MSG_613;?> </b> </td>
                    <td ><? print $TPL_increments; ?> <BR><BR> </td>
                </tr>
                 

                    <td  align="right" valign="top"><b> <? print $MSG_25_0215 ?> </b></td>
                    <td ><? print $TPL_shipping_terms; ?> <BR><BR> </td>
                </tr>
                 <tr>
                    <td  valign="top" align="right"><b> <? print $MSG_026; ?> </b> </td>
                    <td ><? print $payment; ?> <BR><BR> </td>      
                     </tr>
                                  <tr>
                    <td  align="right" valign="top"><b> <? print $MSG_AJAX_ADMIN_SELL_SHIPPING_FEE; ?></b></td>
                    <td ><? print $shipping_fee; ?><BR><BR> </td>
                </tr>
                                <tr>
                    <td  align="right" valign="top"><b><? print $MSG_AJAX_ADMIN_SELL_RETURN_POLICY; ?></b></td>
                    <td ><? print $return_policy; ?><BR><BR> </td>
                </tr>
                                <tr>
                    <td  align="right" valign="top"><b><? print $MSG_AJAX_ADMIN_SELL_RETAIL_VALUE; ?></b></td>
                    <td ><? print $retail; ?> <BR><BR></td>
                </tr>        
                    <tr>
                    <td  align="right" valign="top"><b><? print $MSG_AJAX_ADMIN_SELL_WINNING_BIDDER_BIDS; ?></b></td>
                    <td ><? print $bids_purchased; ?> <BR><BR></td>
                </tr>        
                        <tr>
                    <td  align="right" valign="top"><b><? print $MSG_AJAX_ADMIN_SELL_ON_OFF_AUTOBIDDER; ?></b></td>
                    <td ><? if ( $allow_autobidder == 1 ) { echo $MSG_AJAX_ADMIN_SELL_ON; }  if ( $allow_autobidder == 0 ) { echo $MSG_AJAX_ADMIN_SELL_OFF; } ?> <BR><BR></td>
                </tr>   
                
                 <tr>
                    <td  align="right" valign="top"><b><? print $MSG_AJAX_ADMIN_SELL_ON_OFF_BUYNOW; ?></b></td>
                    <td ><? if ( $buy_now_switch == 1 ) { echo $MSG_AJAX_ADMIN_SELL_ON; }  if ( $buy_now_switch == 0 ) { echo $MSG_AJAX_ADMIN_SELL_OFF; } ?> <BR><BR></td>
                </tr>   
                
                  <tr>
                    <td  align="right" valign="top"><b><? print $MSG_AJAX_ADMIN_SELL_ON_OFF_BEGINNER; ?></b></td>
                    <td ><? if ( $auction_type2 == 'beginner' ) { echo $MSG_030; }  if ( $auction_type2 == 'none' ) { echo $MSG_029; } ?> <BR><BR></td>
                </tr>
                
                         <tr>
                    <td  align="right" valign="top"><b><? print $MSG_AJAX_ADMIN_SELL_PROMOTION; ?></b></td>
                    <td ><? if ( $promotion ) { print "<img src=../images/".$promotion.">"; } ?> <BR><BR></td>
                </tr>
                  
                         <tr>
                    <td  align="right" valign="top"><b><? print $MSG_AJAX_ADMIN_SELL_BID_CREDITS_REQUIRED; ?></b></td>
                    <td ><? print $bid_credits_reqd; ?> <BR><BR></td>
                </tr> 
                        <tr>
                    <td  align="right" valign="top"><b><? print $MSG_AJAX_ADMIN_SELL_TIME_AUTOEXTENSION_ACTIVATION; ?></b></td>
                    <td ><? print $ae_activation; ?><? print $MGS_AJAX_ADMIN_SELL_SECONDS_REMAINING; ?><BR><BR></td>
                </tr>   
                   <tr>
                    <td  align="right" valign="top"><b><? print $MSG_AJAX_ADMIN_SELL_TIME_AUTOEXTENSION_ADDED; ?></b></td>
                    <td ><? print $ae_increment; ?> <? print $MGS_AJAX_ADMIN_SELL_SECONDS_ADDED; ?><BR><BR></td>
                </tr>   
                
                
         
 
                <input type=HIDDEN name="action" value="second" />
                <input type=HIDDEN name="suggested_category" value="<?=$_POST['suggested_category']?>" />
                    <input type=hidden name="nick" value="<? print $_SESSION["PHPAUCTION_LOGGED_IN_USERNAME"]; ?>" />
            </table>    <BR><BR> 
            <div style="text-align:center">
                <input type=submit name="" value="<? print $MSG_5189; ?>" class=button />
                <BR><BR> 
            </div>
        </form>
         </div>
    </FIELDSET>
    </td>
    </tr>
    </table>